package com.duan.edu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.duan.edu.model.User;
import com.duan.edu.service.UserService;
@Controller
@RequestMapping("user")
public class UserController extends BaseController{
	static
	{
		foldName="user";
	}
	@Autowired
	private UserService userService;
	@RequestMapping("login")
	public String login()
	{ 
		System.out.println("登录成功");
		return null;
	}
	@RequestMapping("find")
	public String findUser()
	{
		User user = userService.findById(1);
		System.out.println(user);
		return null;
	}
	
}
